package cn.boat.router.consumer;

import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class BrokerPartitionState implements Serializable {
    static final long serialVersionUID = -1L;

    private int leader;
    private List<Integer> isr;

    @Builder
    public BrokerPartitionState(int leader, List<Integer> isr) {
        this.leader = leader;
        this.isr = isr;
    }
    @Builder
    public BrokerPartitionState(){

    }

    public int getLeader() {
        return leader;
    }

    public void setLeader(int leader) {
        this.leader = leader;
    }

    public List<Integer> getIsr() {
        return isr;
    }

    public void setIsr(List<Integer> isr) {
        this.isr = isr;
    }
}

